USE [master]
GO

IF NOT EXISTS (SELECT name FROM sys.databases WHERE name = N'ESRP_log')
BEGIN
CREATE DATABASE [ESRP_log]
 ON  PRIMARY 
( NAME = N'ESRP_log', FILENAME = N'D:\Data\ESRP_log.mdf' , SIZE = 4096KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
 LOG ON 
( NAME = N'ESRP_log_log', FILENAME = N'D:\Data\ESRP_log_log.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
END

GO

--ALTER DATABASE [ESRP_log] SET COMPATIBILITY_LEVEL = 110
--GO

IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [ESRP_log].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO

ALTER DATABASE [ESRP_log] SET ANSI_NULL_DEFAULT OFF 
GO

ALTER DATABASE [ESRP_log] SET ANSI_NULLS OFF 
GO

ALTER DATABASE [ESRP_log] SET ANSI_PADDING OFF 
GO

ALTER DATABASE [ESRP_log] SET ANSI_WARNINGS OFF 
GO

ALTER DATABASE [ESRP_log] SET ARITHABORT OFF 
GO

ALTER DATABASE [ESRP_log] SET AUTO_CLOSE OFF 
GO

ALTER DATABASE [ESRP_log] SET AUTO_CREATE_STATISTICS ON 
GO

ALTER DATABASE [ESRP_log] SET AUTO_SHRINK OFF 
GO

ALTER DATABASE [ESRP_log] SET AUTO_UPDATE_STATISTICS ON 
GO

ALTER DATABASE [ESRP_log] SET CURSOR_CLOSE_ON_COMMIT OFF 
GO

ALTER DATABASE [ESRP_log] SET CURSOR_DEFAULT  GLOBAL 
GO

ALTER DATABASE [ESRP_log] SET CONCAT_NULL_YIELDS_NULL OFF 
GO

ALTER DATABASE [ESRP_log] SET NUMERIC_ROUNDABORT OFF 
GO

ALTER DATABASE [ESRP_log] SET QUOTED_IDENTIFIER OFF 
GO

ALTER DATABASE [ESRP_log] SET RECURSIVE_TRIGGERS OFF 
GO

ALTER DATABASE [ESRP_log] SET  DISABLE_BROKER 
GO

ALTER DATABASE [ESRP_log] SET AUTO_UPDATE_STATISTICS_ASYNC OFF 
GO

ALTER DATABASE [ESRP_log] SET DATE_CORRELATION_OPTIMIZATION OFF 
GO

ALTER DATABASE [ESRP_log] SET TRUSTWORTHY OFF 
GO

ALTER DATABASE [ESRP_log] SET ALLOW_SNAPSHOT_ISOLATION OFF 
GO

ALTER DATABASE [ESRP_log] SET PARAMETERIZATION SIMPLE 
GO

ALTER DATABASE [ESRP_log] SET READ_COMMITTED_SNAPSHOT OFF 
GO

ALTER DATABASE [ESRP_log] SET HONOR_BROKER_PRIORITY OFF 
GO

ALTER DATABASE [ESRP_log] SET RECOVERY FULL 
GO

ALTER DATABASE [ESRP_log] SET  MULTI_USER 
GO

ALTER DATABASE [ESRP_log] SET PAGE_VERIFY CHECKSUM  
GO

ALTER DATABASE [ESRP_log] SET DB_CHAINING OFF 
GO

ALTER DATABASE [ESRP_log] SET  READ_WRITE 
GO


